using System;
using System.Collections.Generic;
using System.Text;
using SubSonic;
using System.ComponentModel;

namespace SurveyHost.Core.DAL
{
    public partial class QuestionDefinitionCollection
    {
        [DataObjectMethod(DataObjectMethodType.Select, true)]
        public void LoadFromMeasure(string measureName)
        {
            this.Where(QuestionDefinition.Columns.MeasureName, measureName);
            this.OrderByAsc(QuestionDefinition.Columns.MeasureRank)
                .OrderByAsc(QuestionDefinition.Columns.StemRank);
            this.Load();
        }
    }
}
